extends ../template/base

block stylesheet
    link(type="text/css",rel="stylesheet",href="#{rootPath}/module/css/index.css")

block header
    include ../template/header
block left
    include ../template/left

block right
    #right
        .navigation
            .ui.breadcrumb
                .section 首页
                i.right.angle.icon.divider
                .active.section 栏目定义
        .module_index
            a.create(href='#{rootPath}/module/create') 创建栏目
            table.ui.celled.table
                thead
                    tr
                        th(width='12.5%') 栏目名称
                        th(width='12.5%') 栏目子名称
                        th(width='20%') 接口地址
                        th(width='25%') 栏目图标地址
                        th(width='20%') 图片轮播
                        th(width='10%') 操作
                tbody
                    tr(v-for="(item,index) in params")
                        td {{item.name}}
                        td {{item.childName}}
                        td {{item.infUrl}}
                        td
                            .imgIcon(v-if="item.imgUrl")
                                img(v-bind:src="imgUrl(item.imgUrl)")
                                .address {{item.imgUrl}}
                        td
                            .img
                                img(v-bind:src="imgUrl(photo)" v-for="photo in photos[index]")
                        td
                            a.edit(:href='edit+item.id') 编辑
                            a.read(:href='read+item.id') 查看轮播
                tfoot(v-if='all > 1')
                    tr
                        th(colspan='6')
                                page(v-bind:cur='cur', v-bind:all='all')
block javascript
    script(type='text/javascript',src='#{rootPath}/module/js/index.js')

